package com.hyhy.hycloud.commons.support.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lanpengfei
 * @date 2019-03-03
 */
@Data
@ConfigurationProperties(prefix = "task-executor")
public class TaskExecutorProperties {
    private int corePoolSize = 5;
    private int maxPoolSize = 10;
    private int keepAliveSeconds = 60;
    private int queueCapacity = 1024;
    private boolean allowCoreThreadTimeOut = false;
}
